package com.zzr.demo.redis.service;

/**
 * @author: xiaomi
 * @date: 2021/10/8
 * @description: 用 hash 来存储一个有向带权图
 */
public interface GraphService {


    boolean addEdge(String start, String end, int weight);

    Integer getWeight(String start, String end);
}
